import request from '@/utils/request'

// 类别管理 列表
export function getCategoryListApi(params) {
  return request({
    url: '/v1/category/list',
    method: 'get',
    params
  })
}
//通知列表
export function getNoticeListApi(params) {
    return request({
      url: '/v1/meetingMaterial/list',
      method: 'get',
      params
    })
}

// 新建通知
export function addNoticeApi(data) {
    return request({
      url: '/v1/meetingMaterial',
      method: 'post',
      data
    })
}

// 修改通知
export function updataNoticeApi(data) {
  return request({
    url: '/v1/meetingMaterial',
    method: 'put',
    data
  })
}

// 删除通知列表
export function removeNoticeApi(ids) {
  return request({
    url: `v1/meetingMaterial/${ids}`,
    method: 'delete',
  })
}

// 类别管理 新增 
export function addCategoryApi(data) {
  return request({
    url: 'v1/category',
    method: 'post',
    data
  })
}

// 删除类别
export function removeCategoryApi(ids){
  return request({
    url:`v1/category/${ids}`,
    method: 'delete',
  })
}

// 修改类别

export function updataCategoryApi(data){
  return request({
    url:'v1/category',
    method: 'put',
    data
  })
}